package com.example.chao.myphotosearch.config;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

import com.jude.utils.JUtils;

/**
 * Created by chao on 2016/4/29.
 */
public class DBHelper extends SQLiteOpenHelper {
    public DBHelper(Context context) {
        super(context, MySql.DB_NAME, null, MySql.DB_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(MySql.createCollectTable);
        db.execSQL(MySql.createDownLoadTable);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
        JUtils.Log("onUpgrade");
    }
}
